﻿using Pay.Model.Interfaces;
using Pay.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Dal
{
   public  interface IApplyDal
    {
        /// <summary>
        /// 根据id获取
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApplyInfo> GetById(long id);

        Task<long> Add(ApplyInfo model);

        Task<bool> Update(ApplyInfo model);

        Task<IPagedOutput<ApplyInfo>> GetPage(long? MId, DateTime? timeBegin = null, DateTime? timeEnd = null, int offset = 10, int rows = 1);
        /// <summary>
        /// 获取商户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<MerchantInfo> GetByMerchantId(long id);
    }
}
